package c.e.a.c.l;

import android.content.Context;
import android.util.DisplayMetrics;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.w;
import b.p.b.t;

/* compiled from: SmoothCalendarLayoutManager */
public class r extends LinearLayoutManager {

    /* compiled from: SmoothCalendarLayoutManager */
    public class a extends t {
        public a(r rVar, Context context) {
            super(context);
        }

        public float f(DisplayMetrics displayMetrics) {
            return 100.0f / ((float) displayMetrics.densityDpi);
        }
    }

    public r(Context context, int i, boolean z) {
        super(i, z);
    }

    public void X0(RecyclerView recyclerView, w wVar, int i) {
        a aVar = new a(this, recyclerView.getContext());
        aVar.a = i;
        Y0(aVar);
    }
}
